<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>已买到的软件</title>
<style type="text/css">
h1 {
	color: #494949;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.1em;
}

input {
	font-size: 12px;
	margin-right: 3px;
}

span.title {
	color: #006600;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 120%;
}

ul.errorMessage,ul.errorMessage li {
	display: inline;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	color: #FF3300;
}

#wrapper {
	margin: 0 auto;
	width: 950px;
}

a {
	text-decoration: none;
	color: #336699;
	font-size: 12px;
	margin-right: 6px;
}

a:hover {
	text-decoration: underline;
}

table.list {
	width:80%;
	font-size: 12px;
	text-align:center;
}
table.list td {
	border-bottom: 1px solid #EEEEEE;
}
</style>
<s:head />
</head>
<body>
<div id="wrapper">
<h1>已买到的软件</h1>
<s:actionerror /> <s:if test="appuserSoftwareBalances.size()==0">
	你还没有购买任何软件。<br />
</s:if> <s:else>
	<table class="list">
		<tr><th>软件名称</th><th>使用期限</th><th>未使用功能点</th><th></th></tr>
		<s:iterator value="appuserSoftwareBalances">
			<tr>
				<td><s:property value="software.name" /></td>
				<td><s:date format="yyyy-MM-dd HH:mm:ss" name="expire" /></td>
				<td><s:property value="unusedPoint" /></td>
				<td>
					<s:url var="url" action="softwaredetails">
						<s:param name="software.id">
							<s:property value="id" />
						</s:param>
					</s:url> 
					<s:a href="%{url}">详情</s:a>
				</td>
			</tr>
		</s:iterator>
	</table>
</s:else> <s:form action="orderapp">
	<s:submit value="购买软件" />
</s:form></div>
</body>
</html>